printing: Fix getting info for standalone IPP printers
authorMarek Kasik <mkasik@redhat.com>
Thu, 12 Dec 2019 15:56:37 +0000 (16:56 +0100)
committerMarek Kasik <mkasik@redhat.com>
Thu, 12 Dec 2019 16:08:30 +0000 (17:08 +0100)
commita6e3fc2d2f1554211376a9bac6093f5ff264788c
tree194614b755e3713c785daad590edf24146290c00
parente54049bc2678e6b4bcf0c888a742433bf71f7e1a
printing: Fix getting info for standalone IPP printers

Create printer name from name of the advertised service
for standalone IPP printers as opposed to CUPS printers
advertised via Avahi which get name from their
resource path.
This is similar to what cups-filters does.

Pass GtkPrinter class to request for printer info
so that it does not need to be searched for
(such search could fail for standalone IPP printers).

https://gitlab.gnome.org/GNOME/gtk/issues/1509
modules/printbackends/gtkprintbackendcups.c